
// const requireAll = requireContext => requireContext.keys().map(requireContext)

const requireAll = requireContext => {
  requireContext.keys().map(function (item) {
    console.log(requireContext(item))
    requireContext(item)
  })
}

const req = require.context('@/assets/icon', false, /\.svg$/)
// console.log(req.keys())
requireAll(req)
